package cn.star.jots.preview.mapper;

import cn.star.jots.preview.pojo.entity.Preview;
import cn.star.jots.preview.pojo.vo.PreviewVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PreviewMapper {
    void insert(Preview preview);

    void update(Preview preview);

    List<PreviewVO> selectByFilmId(Long filmId);

    List<PreviewVO> selectById(Long id);

    void delete(Long id);

    void deleteByFilmId(Long filmId);

    List<PreviewVO> selectAll();
}
